﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace UI.ParentForm
{
    public partial class BaseTMedit : BaseMedit
    {
        public BaseTMedit()
        {
            InitializeComponent();
        }

        public BaseTMedit(string modulecode, string action)
            : base(modulecode, action)
        {
            InitializeComponent();
        }

        protected override void ResetSize()
        {
            int summaryHeight = this.tbSummary.Height;
            summaryHeight = Math.Max(summaryHeight, 60);
            this.tbSummary.Size = new Size(this.ClientSize.Width - 40, summaryHeight);
            int winHeight = this.Height;

            this.panDtl.Location = new Point(this.panDtl.Location.X, tspTop.Height + summaryHeight + 50);
            this.panDtl.Size = new Size(this.panDtl.Width, winHeight - summaryHeight - tspTop.Height - this.scrollBar1.Height - 90);
        }
    }
}
